package com.yangya.user.controller;

import com.yangya.user.model.vo.UserVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/getUser/{id}")
    public UserVo getUser(@PathVariable Long id){
        return UserVo.builder().id(1L).userName("2222").password("33333").build();
    }
}
